package davion.study.summercloud.model;

public class MyFile {
    private Integer id;

    private String name;

    private Integer storeId;

    private Integer folderId;

    private String filePath;

    private Long uploadTime;

    private Integer type;

    private String postfix;

    private Integer size;

    private Integer downloadCount;

    public MyFile(Integer id, String name, Integer storeId, Integer folderId, String filePath, Long uploadTime, Integer type, String postfix, Integer size, Integer downloadCount) {
        this.id = id;
        this.name = name;
        this.storeId = storeId;
        this.folderId = folderId;
        this.filePath = filePath;
        this.uploadTime = uploadTime;
        this.type = type;
        this.postfix = postfix;
        this.size = size;
        this.downloadCount = downloadCount;
    }

    public MyFile() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Integer getStoreId() {
        return storeId;
    }

    public void setStoreId(Integer storeId) {
        this.storeId = storeId;
    }

    public Integer getFolderId() {
        return folderId;
    }

    public void setFolderId(Integer folderId) {
        this.folderId = folderId;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath == null ? null : filePath.trim();
    }

    public Long getUploadTime() {
        return uploadTime;
    }

    public void setUploadTime(Long uploadTime) {
        this.uploadTime = uploadTime;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getPostfix() {
        return postfix;
    }

    public void setPostfix(String postfix) {
        this.postfix = postfix == null ? null : postfix.trim();
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public Integer getDownloadCount() {
        return downloadCount;
    }

    public void setDownloadCount(Integer downloadCount) {
        this.downloadCount = downloadCount;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", storeId=").append(storeId);
        sb.append(", folderId=").append(folderId);
        sb.append(", filePath=").append(filePath);
        sb.append(", uploadTime=").append(uploadTime);
        sb.append(", type=").append(type);
        sb.append(", postfix=").append(postfix);
        sb.append(", size=").append(size);
        sb.append(", downloadCount=").append(downloadCount);
        sb.append("]");
        return sb.toString();
    }
}